import { createStore } from 'vuex'
import mutations from './mutations'
import getters from './getters'
import actions from './actions'
export default createStore({
  state: {
    user:{
      isLogin:window.localStorage.getItem('token')?true:false
    },
    cartCount:0
  },
  mutations,
  actions,
  getters,
  modules: {
  }
})
